made ajax happen on page load instead of on space