adds a controller that performs basic crud operations