Added homepage logic to template for hero unit