bugfix (hide buttons on the wrong pages)