run model and index page