- changed the code for referencing to only give user search results with elements that does not exist in the same unit as the one that the user is editting (otherwise the code gets very messy)
- changed the display code to show "no search found" equivalent instead of empty table
- when user cancels the addition of existing reference materials, changed the code to remove the associate form that was already appended