use timer to delay draw ui