Created a controller to handle model submissions