fix homepage conditionals