set last connection mode