sorted out the edit restful route, still need to fix the delete