fixing screen rotation issue