add home functionality