A clean approach to view toggling.