fix orientation and ratio, screen size opt is not done