Add front page logic