finishing layout and routes