fix output layouts and index view