polish fragments code for view pager