fixed modal dialog.
added idea to git ignore.