removed tcltk dependency from updatePanel function