Added listener for wifi