Fixed page display bug

Fixed bug with sheets with fewer than 7 notes. Also changing the window
size on page orientation change.