added removeWidget method