check show/hide buttons