complete layouts
merge ui and functions