update and fix framework for metabox