stop and start timer functions in service