Fix custom pages edit in dashboard