add new post and fix bug