Simplified toggle function