Refactored Timer toggle feature