added home-page and middleware