update resource model and index page