Created and added some codes to index page