Added logics to liesteners of color buttons