@Override
public void onLogout() {
History.newItem("login");
}
});
bus.addHandler(AuthEvent.TYPE, new AuthEventHandler() {
@Override
public void onAuth(AuthEvent event) {
authService.login(event.getUsername(), event.getPassword(), new AsyncCallback<Long>() {
@Override
public void onSuccess(Long result) {