graph and api on home page