Changed pagecreate to deviceready