Added controller/connect route and controller/disconnect route. Fixed errors in connect and disconnect methods