Changed listener to proper page:load event