format codes by PyCharm, and add pagination to index page