bugfix with defaultCloseOperation. Now it correctly disposes when main frame closes