Unbind all event handlers when view-mode is changed.