updated functions for comment
added a page model for the front page