add check online in dialog function

Signed-off-by: Roman Gorbatko <romangorbatko@gmail.com>