make widget work in a sane way