clear and delete in wiget