fix for constructing the form field outside of the admin