added connect and disconnect prototypes to controller