Added the option that keeps the selected element.

Added the option that keeps the selected element.