change layout manager instantiate place to solve app_window dependency