update layout sample