Added update functionality and rspec tests
Added link to edit on the index html