Added update and destroy functions
added the edit function
updated the index view to have delete button