implementing layout

implementing layout without code