wrote test for template rendering
completed the edit action