show UI, code provided by Tanno.
bug fix : Do not use global $post
bugfix