Added connected and disconnected events for controller