added some functionality to front page