Cleaned up some of the unused functions and removed the duplicate mouseover events