update detail view layout