finished init layout and routing