process click in state