add show checkmark logic