changed handling of home/away check to smooth the look of the page loading