check if clicked is element