layout template, basic css, controllers' refactoring