add function of changing item color when tapping it