Adds html and handler for edit page