Display panel at top; refactor page loading