add limit to add pages and add gallery, deleted page sorting fix