Changed the jQuery .toggleClass methods to toggle() and hide()