fixing for 1.8 and make dialog/widget resisable again