Added fixes to page editing routes