added home frontend functionality