Resize the graph on window resize.

Bugfix: removed double graph line
Remove secondary menu items for smaller screens.