update levels on page load