minor cleanup: turned export from widget into model