bug fixes

fixed when pushing in portrait mode in iOS 7.
Merge pull request #16 from knatanzon/master

bug fixes