Pulled the events out of the document ready tabs.