Unbind events when not needed