error message added, should possibly make dialog error