How to use the buttons of Q1 in the application