some refactoring in nm_show_post, #20