fixed issue with search display and layer change