updating source layout