Added Graph to Main Window

Added methods and timer related to the graph in the main window.