buttons properly hide out of view pages