changed homepage logic
minor fixes