Improved search to be more dynamic and not depend on user clicking a button