modified the method of compute wifi level in wifi dialog's item