Removed global vars from search
Updated view
Improved error handling by checking the dependencies (e.g. vars and parameters)