move layouts to views