Actually fixed an error now.
Fixed showing of graphs. Now, the popup is shown only when the graph is actually loaded.
Did some styling.