removes unused code, fixes default form value