remove duplicate logic. clean up show_post()