changed homepage display logic