add view toggle
Merge pull request #27 from bwinterling/dynamic_layouts

add view toggle