flipping pages works more correctly, fixed the nav bar issue