allow handler to work from constructors of classes like filedialog

we should do this for all the classes