Moved view pager helper classes outside fragment.