moved abs positioning calculations to just on page load
updated comments