udpating the panel