fixed warning dialog bug need to test regex and some more code