update layout on various pages