add viewWillTransitionToSize method