move meta_box code to admin.php