Updated _addRecordAction function to accept the form name as an argument and defaulted it's value to the value currently there for backward compatability