corrected error of using models without being init
added session init to main window and completed the setData function for inc/exp dialog