fix delete post to navigate back to index