added the ability to page through long results; changed the way selection works