Add a timer to replace switch button