added two new post-handlers to the controller.rb
created tables for the edit/new file