implement actionPorformed method to response the AnActionEvent