implement add_last_selection and jump_to_last_region commands