Added function to automaticly turn wifi off.
WiFi switch will be set after reopening app