Added window.location change when graph is selected