index layout was not working