resolve #2 - re-layout when the orientation changes.