implementing new layout