change search methods for pagination + gui corectness