get frames on page load