replace the old show tag code with new code