working button recognition