Button to change mode working via polling