* Adding prompt for disconnect * changing to Idialog service * Code cleanup and fixing comments * Adding comments and making a test async * removing then and awaiting for function