finish layouts and routing