Refactor the index page
Create use session