run commands on page load