Add remember last selection feature to avoid repeated operation