change color of panel in real time