getCurrentSelection function works