Added jquery to hide/show alerts