add page load to common.js