#208 updated the controller and view and solved the adding into the DB