Update mainwindow.cpp

-remove items
-add recent files management