removed callout to window.onload - it was causing conflicts