adding error erb to notes