removeWidget working

Attention this is a very ugly patch..
it can lead to bad behaviour on removing objects...