move the album search function from the UI to a method in the Album class