index layout and authentication