change the behavior of select mode