count down code and select control