Change index layout style and add some event listeners