Seperated the sppining activity from the pager view