Added dialog and wifi connection.