adding odds and ends
Merge pull request #408 from douginator2000/random

adding odds and ends
fixing ag_search issue related to duplicate records being shown for a single search criteria
fixing ag_search issue related to duplicate records being shown for a single search criteria