changes device pre selection on window appear