to display without refreshing the index if edit post is done