clean up, get rid of deprecated showDialog