cleaned up toggle function for multi-monitor