Remove extra bracket and add alert dialog for no connection