finish layoout and routes