finished most of layout