Fixed display issue for custom pages in web