made edit page work