Page switching minor fix

buttons only show up when necessary now