Implementing the solution using a SearchManager object and maintaining data with sessions