made post list refreshed when deleting post or creating new