adds additional switch callbacks
parses and interprets theme from URL
fixes bug if theme parameter was missing
updates url on theme change
removes debugging statement