fix migration and models, render index view