handle input + count down