Update edit page and fix add template