refresh info on page load, fix a couple bugs, remove unwanted print statements