add essay func and display at Index page, next step is to consider the posts and fix the bugs