refactor the post detail and reply