Set value and label correctly