updtaing the hover state