Fixed bug in controller that was conflicting with data plotting on index page load