added event handling class, added file open dialog