Added functionality to the control buttons and added functionality to the popup menu items

I did not refactor the project - made it all work in the drawgraph
class instead of creating methods in the GuiMethods class. This seemed
easier and more logical.