init index layout & fix categories