add delete func and add index_post.ejs, it just for the posts at index page