Buttons detection works