mac viewcontroller fixes