change handleActionError to handleActionEvent