added flexibility to view pagers