added controls to dynamically change orientation and layout for ListView