updated to use JQuery hide and toggle methods