add loading when connect to device