Search tables when locked view is enabled working properly