Fixed bug in edit-page view