Added front page functionality