creates edit page