Added complete page load functionality