add new formats to popup menu, update field length when format changes