Converted new/create and edit/update routing to use ajax to update the main page through the **.js.erb files instead of **.html.erb files