add layout to view