ticket:1 added constraints to properly handle device orientation changes