changed UI theme better wifi state checking