finish laypout and routes