Not sure why this function is continuing to run. Function a() should always be running except when function b() is running. Function b() is initiated when a button with the clas