create edit template, router, and controller with actions