Optimized creation of routes on page load, created margin around graph