Added Screen Rotation Functionality

Fixed screen rotation functionality.