update metabox script to v1.2.0
update function scope