Fixed the issue with landscape and potrait mode (screen rotation)