completing the homepage coding