fixing parse error in edit page