sidebar conditionals almost working