Added debouncing at the end of mainTiming and drawerTiming
Set initial value of timeElapsed to 0 in order to enter into the loop