refactoring: create view layouts