Added smart edit of posts