finish layout and routes. refactoring tests