add layout and view