Free old charts when changing view. This also fixes the async-running ajaxes