moving it into it's own load event