Added support for dynamicly updating panel