add a controller and all the connection