fix the bug of the error page because of not loading the query data and change a little about the index page display style