made some javascript additions to the field. button now deflates properly