Adjust side panel height only if it's smaller than window height
Refactor page navigation view