add layout and connect manager.