tweaking homepage logic