added edit/update in controller
Merge pull request #2 from rsung26/master

added edit/update in controller