change bind event to pageshow from pageinit
because in pageinit,the header and footer's height is wrong.