added home functionality