onFlip() implem as per swipeview std sample
fixed pageIndex bug