Resolve the problem of crash when press the "Refresh" button without connection. Also add a circle progress bar when try to connect to the alarm server.