implemented the homepage and sidebar