Changed label from record identfier to file name since it makes more sense for users.
Added a exception handling mechanism for non ajax requests.