last moment change, found out that it is much better having dialog package out of window package