public void onClick(ClickEvent event) {
final Object sender = event.getSource();
// close the view
if(sender == toolbar.btnClose) {
ViewManager.get().dispatch(new UnloadViewRequest(key, true, false));
}
// refresh the view
else if(sender == toolbar.btnRefresh) {
view.refresh();