Replace input

fix timer
fix draw progress