edit page bug fix