fixed year in ug search message
changed code to hide the course year warning message for search pages
fixed newlines in warning messages