make home page can add state directly