update base layout and index view