Added toggle button for graph types and made UI better