fixing error in pagemanager edit controller