fixed comment
add code for search view
add exception handling for missing metadata