refactored Metabox methods into their own class