merged my code

one of the graphs is commented out(the one that takes long to load),
total number in showButtons() is 5