This adds pages dynamically in viewpager with proper back button navigation