add edit view and template