Added initial support for screen rotation