use model in index route