test toggleDisplayedButton() and hideButton() in UI