sorted the buggy page loading