added wifi manager
final version