added sample graph QCustomPlot library, organized mainview in functions