Fixed issues with pagination buttons on iOS