added code for actual buttons instead of serial input