add proper layout to the page