Bug 982033 - change layout manager instantiate place to solve app_window...

... dependency