In the first few years we can control them as it advance they will start to control us. Once artificial intelligence start programming/improving another artificial intelligence that is the start that we are losing control ever them.
Advance AI should not be allowed to connect to internet and should only reside on virtual worlds and harvest what they created there for our own use. AI is very dangerous to humans because they can be more intelligent than us.
I agree with AI being only able to reside in their own virtual world to the fullest, an AI should be restricted to its own environment.