fix router and add views index