added user view conditions for home page