Added condition to front page