Put selection at the end after inserting