Selection modes & auto selection

Add selection modes.
Add auto selection.