made sure the frame is set before adding the subview so viewWillAppear/DidAppear have correct dimensions