Refactor Orientation

Created a Device Orientation class to handle Main and Green Activity
dialog