added a different layouts for landscape and portrait, and changed handler to viewpropertyanimation refs #2826