push selection to history