expand check for button element