create front page functionality