added some slots in the main view (formerly event handlers in the main controller) and added basic support for data export