changed index page UI, added pagination