refactored index by using ul, li and