added basic functionality for front page