updating markup with new layout