edit handler plus html template for edit