Added callbacks to page load