added layout and index views