fill in edit action and add edit page