Fix bugs

1. Fix rotation bugs. It will dismiss frequently using device
orientation rather than interface orientation.
2. Fix divider display issue. Redraw the UI after next/previous page
button clicked.