made directions load on page load