flip logic on homepage redirect