rest.status.toggle_backend_visibility is an async call, so to make it reload after it is done you have to make look like this:
```
adagios.rest.status.toggle_backend_visibility({'backend_name':'{{ backend }}'}).done(function() { location.reload(); });
```