event handling and main frame implemented