Button interrupt code working