added update functionality, in spec, controller and views

Update including update/edit