remove widget from class