Added different labels depending on state on history button