myPage init when page is loaded