added search ui
added search ui
able to pass in var initially