added a controller to add todos