interrupt buttons, code stops running sometimes