Added the option that keeps the selected element.

Added the option that keeps the selected element.
Merge pull request #1 from vladimir-m/master

Added the option that keeps the selected element.