refactoring mainwindow, adding class which draw the operations and bill