bug fixes

fixed when pushing in portrait mode in iOS 7.