register and index views