fixed bug with removing widgets from panel