Moved the view change events to the wb object and optimized tabs