fixed search and fixed metadata dropdown which i buggered before
search now dynamically adds fields and works