buttons are set up with the loop function