implemneted layout of the index page