refactored bar window controller and nib