PR to fix Issue 82

This is a PR to fix Issue #82. Right now will store the query before the visualization and then refresh the page (maybe not the best approach but works for now).

This PR also fixes an issue when creating multiple visualizations, the name of the last visualization was still controlled by the text in the form of a new visualization.

Let me know what you think about it :D