init bootstrapSwitch
add listeners for hash changes
clean up