completed most of the layout structure