complete template for edit page