general layout and index layout done