adding code for front page