add support for screen rotation