Added homepage functionality