prevent opening tap panel on click of button