move layout to views