changed the functionality so it searches instead of just showing a huge text