stuff that were in window load should have been in document ready.. fixed it