rename and relocate hook template
add edit view template and clean up a bit