Adding the close view to the 1st subview from UIWindow that received rotation events. Redone calculations so that they look ok on landscape as well.